package org.marverse.universe

import util.{MutableTypedMap, TypedKey}

class CompoundTransition(val description: AnyRef, 
                         val subTransitions: Seq[UniverseTransition], 
                         override val hasErrors: Boolean) 
extends UniverseTransition {
  override def check(implicit ctx: MutableTypedMap[TypedKey, Any]) {
    subTransitions foreach { _.check(ctx) }
  }
  override def perform(universe: Universe) {
    subTransitions foreach { _.perform(universe) }
  }
}
